// Added by the Spring Security Core plugin:
grails.plugin.springsecurity.userLookup.userDomainClassName = 'com.cindata.User'
grails.plugin.springsecurity.userLookup.authorityJoinClassName = 'com.cindata.UserRole'
grails.plugin.springsecurity.authority.className = 'com.cindata.Role'

grails.plugin.springsecurity.controllerAnnotations.staticRules = [[pattern: '/', access: ['permitAll']],
    [pattern: '/error', access: ['permitAll']],
    [pattern: '/index', access: ['permitAll']],
    [pattern: '/index.gsp', access: ['permitAll']],

    [pattern: '/welcome', access: ['permitAll']],
    [pattern: '/notFound', access: ['permitAll']],
    [pattern: '/error', access: ['permitAll']],
    [pattern: '/shutdown', access: ['permitAll']],
    [pattern: '/assets/**', access: ['permitAll']],
    [pattern: '/**/js/**', access: ['permitAll']],
    [pattern: '/**/css/**', access: ['permitAll']],
    [pattern: '/**/images/**', access: ['permitAll']],
    [pattern: '/**/favicon.ico', access: ['permitAll']]]

grails.plugin.springsecurity.filterChain.chainMap = [[pattern: '/assets/**', filters: 'none'],
    [pattern: '/**/js/**', filters: 'none'],
    [pattern: '/**/css/**', filters: 'none'],
    [pattern: '/**/images/**', filters: 'none'],
    [pattern: '/**/favicon.ico', filters: 'none'],
    [pattern: '/**', filters: 'JOINED_FILTERS']]


grails.plugin.springsecurity.successHandler.defaultTargetUrl = '/main/welcome'
grails.plugin.springsecurity.providerNames = ['customAuthenticationProvider',
    'anonymousAuthenticationProvider',
    'rememberMeAuthenticationProvider']

// grails.plugin.springsecurity.failureHandler.defaultFailureUrl='/signIn/authfail?login_error=1'
grails.plugin.springsecurity.adh.errorPage = '/notFound'
// grails.plugin.springsecurity.auth.loginFormUrl='/signIn'
// grails.plugin.springsecurity.successHandler.defaultTargetUrl = '/signIn/index'

// grails.plugin.springsecurity.auth.loginFormUrl='/signIn'

// springsession.allow.persist.mutable = true
grails.plugin.springsecurity.useSecurityEventListener = true
grails.plugin.springsecurity.dao.hideUserNotFoundExceptions = false


// Added by the Spring Security Core plugin:

//sftp.server = '127.0.0.1'
//sftp.username = 'test'
//sftp.password = '123456' // Leave empty string if you are using a private key, if password has a value it will overwrite the private key.
//sftp.remoteDir = '/'
//sftp.port = 22
//sftp.keyFilePath = ''
//sftp.throwException = false
//sftp.fileName = "test.txt"
//sftp.localPath = "E:/sftpDown"

hibernate {
    temp.use_jdbc_metadata_defaults = false
}